how to solve a determinant